<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="../header.jsp">
<jsp:param value="查看附件信息" name="title" />
</jsp:include>
</head>
<body>
<fieldset>
<legend>附件信息</legend>
<ul>
<c:forEach items="${listA}" var="accessory">
<li>
<c:choose>
<c:when test="${fn:endsWith(accessory.fileName, '.png') || fn:endsWith(accessory.fileName, '.jpg') || fn:endsWith(accessory.fileName, '.gif')}">
<a href="${accessory.filePath }" target="_blank">
<img style="max-width:200px;" alt="${accessory.fileName }" src="${accessory.filePath }">
</a>
&nbsp;&nbsp;&nbsp;&nbsp;<span>${accessory.uploadTime }</span>
</c:when>
<c:otherwise>
<a href="${accessory.filePath }">${accessory.fileName }</a>
</c:otherwise>
</c:choose>
</li>
<p></p>
</c:forEach>
</ul>
</fieldset>
</body>
</html>